<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>

<html>
<head>
<title>regist</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.4/jquery.min.js"></script>

<script type="text/javascript">
	function getUniversityByProvinceId(pid) {
		$.ajax({
			type : "POST",
			url : "getUniversityByProvinceId",
			data : ({
				provinceId : pid
			}),
			success : function(msg) {
				$(".un").html($(msg).find(".un").css("font-size", "14px"));
			}
		});
	}
	function getCollegeByUniversityId(uid) {
		$.ajax({
			type : "POST",
			url : "getCollegeByUniversityId",
			data : ({
				universityId : uid
			}),
			success : function(msg) {
				$(".co").html($(msg).find(".co").css("font-size", "14px"));
			}
		});
	}
</script>
</head>
<body>
	<div class="content-top">
		<div class="wrap">
			<div class="middle-content">
				<h2>
					青岛农业大学精品课程平台教师注册<br>
				</h2>
				<hr class="hr1">
				<br>
				<hr class="hr2">

			</div>
			<div class="section group">
				<div class="col span_2_of_contact">
					<div class="contact-form">
						<h3>教师注册</h3>

						<p class="flag">${flag}</p>
						<form method="post" action="saveTeacher" id="saveTeacher">
							<div>
								<span><label>姓名:</label></span> <span><input
									name="teacher.teacherName" type="text" autocomplete="off"
									placeholder="请输入您的姓名"></span>
							</div>
							<div class="valitedIdcard">
							</div>
							<div>
								<span><label>email:</label></span> <span><input
									name="teacher.email" type="text" autocomplete="off"
									placeholder="请输入您的email"></span>
							</div>
							<div class="valitedIdcard">
							</div>
							<div>
								<span><label>身份证号:</label></span> <span><input
									name="teacher.idcard" type="text" autocomplete="off"
									placeholder="请输入您的身份证" onblur=""></span>
							</div>
							<div class="valitedIdcard">
							</div>
							<div>
								<span><label>手机号:</label></span> <span><input
									name="teacher.phone" type="text" class="textbox"
									placeholder="请输入您的手机号"></span>
							</div>
							<div class="valitedPhone">
							</div>
							<div>
								<span><label>密码:</label></span> <span><input
									name="teacher.pwd" type="password" class="textbox"
									placeholder="请输入您的手机号"
									onblur=""></span>
							</div>
							<div class="valitedPhone">
							</div>
							<div>
								<span><label>确认密码:</label></span> <span><input
									name="repwd" type="password" class="textbox"
									placeholder="请再次输入您的密码"></span>
							</div>
							<div class="valitedPhone">
							</div>
							<div>
								<span><label>省份:</label></span> <span> <select name="pid"
									class="textbox"
									onchange="getUniversityByProvinceId(pid.value);">
										<c:forEach items="${provincesList}" var="pl">
											<option value="${pl.provinceId}">${pl.province}</option>
										</c:forEach>
										<option selected="selected">--请选择高校所在省--</option>
								</select>
								</span>
							</div>

							<div>
								<span><label>学校:</label></span> <span class="un"> <select
									name="uid" class="textbox"
									onchange="getCollegeByUniversityId(uid.value);">
										<c:forEach items="${universityList}" var="ul">
											<option value="${ul.universityId}">${ul.university}</option>
										</c:forEach>
										<option selected="selected">--请选择所在学校--</option>
								</select>
								</span>

							</div>

							<div>
								<span><label>院系:</label></span> <span class="co"> <select
									name="cid" class="textbox" onchange="">
										<c:forEach items="${collegeList}" var="co">
											<option value="${co.collegeId}">${co.college}</option>
										</c:forEach>
										<option selected="selected">--请选择所在院系--</option>
								</select>
								</span>
							</div>


							<div>
								<span> <input type="submit" value="提交"/>
								</span>
							</div>
						</form>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</div>
	<div style="height: 150px;"></div>
</body>
</html>



